import {createRouter, createWebHistory} from "vue-router";

const routes = [
    {
        path: '/',
        name: 'index',
        component: () => import("../views/index.vue"),
        children: [
            {
                path: '/user_behavior_pie',
                name: 'user_behavior_pie',
                component: () => import("../views/user_behavior_pie.vue")
            },
            {
                path: '/user_behavior_bar',
                name: 'user_behavior_bar',
                component: () => import("../views/user_behavior_bar.vue")
            },
            {
                path: '/date_stat',
                name: 'date_stat',
                component: () => import("../views/date_stat.vue")
            },
            {
                path: '/time_stat',
                name: 'time_stat',
                component: () => import("../views/time_stat.vue")
            },
            {
                path: '/newEnergyChargeWeekPerson',
                name: 'newEnergyChargeWeekPerson',
                component: () => import("../views/newEnergyChargeWeekPerson.vue")
            },
            {
                path: '/newEnergyChargeWeekChargeTime',
                name: 'newEnergyChargeWeekChargeTime',
                component: () => import("../views/newEnergyChargeWeekChargeTime.vue")
            },
            {
                path: '/NewEnergyChargeWeek',
                name: 'NewEnergyChargeWeek',
                component: () => import("../views/NewEnergyChargeWeek.vue")
            },
        ]
    },

]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
